﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wix.Aura.Common.CustomTypes;
using System.Xml.Serialization;

namespace Wix.Aura.Common {
	public class AppId : IXmlSerializable {
		private AppId() { }

		public AppId(Guid id) {
			Id = id;
		}

		public Guid Id { get; set; }
		public YesNoType ActivateAtStorage { get; set; }
		public YesNoType Advertise { get; set; }
		public string Description { get; set; }
		public string DllSurrogate { get; set; }
		public string LocalService { get; set; }
		public string RemoteServerName { get; set; }
		public YesNoType RunAsInteractiveUser { get; set; }
		public string ServiceParameters { get; set; }

		public System.Xml.Schema.XmlSchema GetSchema() {
			throw new NotImplementedException();
		}

		public void ReadXml(System.Xml.XmlReader reader) {
			throw new NotImplementedException();
		}

		public void WriteXml(System.Xml.XmlWriter writer) {
			writer.WriteStartElement("AppId");
			writer.WriteAttribute("Id", Id);
			writer.WriteAttribute("ActivateAtStorage", ActivateAtStorage);
			writer.WriteAttribute("Advertise", Advertise);
			writer.WriteAttribute("Description", Description);
			writer.WriteAttribute("DllSurrogate", DllSurrogate);
			writer.WriteAttribute("LocalService", LocalService);
			writer.WriteAttribute("RemoteServerName", RemoteServerName);
			writer.WriteAttribute("RunAsInteractiveUser", RunAsInteractiveUser);
			writer.WriteAttribute("ServiceParameters", ServiceParameters);
			writer.WriteEndElement();
		}
	}
}
